package com.xiaoy.util;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


public class SpringUtil {

	private static ApplicationContext ac = new FileSystemXmlApplicationContext("/src/main/resources/applicationContext.xml");
	
	public static Object getService (String name) {
		
	    return ac.getBean(name);
	}
}
